from PyQt5.QtWidgets import QWidget
from app_for_test import MainWindow

_MainWindow = None


def get_main_window() -> MainWindow:
    global _MainWindow
    assert _MainWindow is not None
    return _MainWindow


def add_plugin_widget(plugin_widget: QWidget):
    mw = get_main_window()
    mw.plugin_manager.load_plugin(plugin_widget)


def get_data(name: str):
    pass


def set_data(name: str):
    pass


def send_shell_command(name: str):
    pass
